/*
 * main.h
 *
 *  Created on: 28.11.2011
 *      Author: alexs
 */

#ifndef MAIN_H_
#define MAIN_H_

#define USART_TX_BUFF_SIZE 128
#define USART2TXDMA DMA1_Channel7
#define USART2TCFLAG DMA1_FLAG_TC7
#define NIRQ_stat() GPIO_ReadInputDataBit(GPIOB,GPIO_Pin_0)

#define CHIP26_2 0x066FFF51
#define CHIP26_1 0x50546649
#define CHIP26_0 0x87172627

#define CHIP27_2 0x0668FF51
#define CHIP27_1 0x50546649
#define CHIP27_0 0x87172727

typedef enum {READ=0,WRITE} SPI_dir;

extern char USART_TX_BUFF[USART_TX_BUFF_SIZE];

#endif /* MAIN_H_ */
